package com.wzy.pipeline;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: wzy
 * @Date: 2021/12/11/15:35
 * @Description:
 */
@RestController
public class SimlpaController {
    @Autowired
    private ModelServiceImpl modelService;

    @PostMapping("/pipeline/build")
    public CommonResponse<Long> buildModelInstance(@RequestBody InstanceBuildRequest instanceBuildRequest) {
        return modelService.buildModelInstance(instanceBuildRequest);

    }
}
